
package com.gainloop.Listeners;

import android.content.Intent;
import android.view.View;
import android.widget.Toast;

import com.gainloop.Profile;
import com.gainloop.Adapters.HelpAdapter;
import com.gainloop.Api.Entity.User;
import com.gainloop.Utils.Constants;

public class HelpUserButtonListener implements View.OnClickListener{
	User _user;
	HelpAdapter _helpAdapter;
	public HelpUserButtonListener(User user,  HelpAdapter helpAdapter){
		
		_user=user;
		_helpAdapter = helpAdapter;
	}
	
	@Override
	public void onClick(View v) {
		
		//Toast.makeText(_helpAdapter.getContext(), "User Id: "+_user.getId(),
			//	Toast.LENGTH_SHORT).show();
		Intent intent=new Intent(_helpAdapter.getContext(),Profile.class)
		.putExtra(Constants.userParam, _user.getId());
		_helpAdapter.getContext().startActivity(intent);
		
	}
}
